<h1>Do you want to receive invoices, statements of account and order confirmations via mail??</h1>

<p>
    Dear <?php print $name; ?><br/>
    For many years Menu has focused on the environment, and consequently we have tried to find a solution to bring down the amount of paper, and naturally we hope that you want to support our efforts in this respect.
</p>
<p>
    In the first place we would like to offer you  our electronic document service. The solution  is free.
</p>
<p>
    We offer you the possibility of receiving invoices, statements of account and order confirmations in a PDF-format on email. If you still want to receive your documents in paper this is still possible. And for the moment the service will still be free of charge.    
</p>
<p>
    If you have any questions to the above, please do not hesitate to contact our accounts department on: <a href="mailto:accounting@menu.as">accounting@menu.as</a>
</p>

<form class="mailinfo" method="post" action="http://edoc.menu.as/createxml.php" name="mailinfo">
    Name:
    <br/>
    <div class="input"><input name="contactname" value="<?php print $contactname; ?>" style="width: 300px"/></div>
    <br/>
    Mail address for invoicing:
    <br/>
    <div class="input">
        <input name="salesinvoicemail" value="<?php print $invoicemail; ?>" style="width: 300px"/>
        <?php
            if ($salesinvoiceerror)
            {
                print "<span class='error'>Mail address is not valid</span>";
            }
        ?>
    </div>
    <br/>
    Mail address for statements:
    <br/>
    <div class="input">
        <input name="accountstatementmail" value="<?php print $accountstatementmail; ?>" style="width: 300px"/>
        <?php
            if ($accountstatementmailerror)
            {
                print "<span class='error'>Mail address is not valid</span>";
            }
        ?>
    </div>
    <br/>
    Mail address for order confirmations:
    <br/>
    <div class="input">
        <input name="salesconfirmmail" value="<?php print $salesconfirmmail; ?>" style="width: 300px"/>
        <?php
            if ($salesconfirmmailerror)
            {
                print "<span class='error'>Mail address is not valid</span>";
            }
        ?>
    </div>
    <br/><br/>
    <p>By clicking OK you accept to receive the above mentioned documents on mail and will not receive the documents on paper in the future.</p>
    <p>Please, click OK even though you do not have any changes.</p>
    <input type="submit" value="OK" name="cmd" style="width: 100px"/>

    <input type ="hidden" name="accountnum" value="<?php print $accountnum; ?>" style="width: 100px"/>
    <input type ="hidden" name="dataareaid" value="<?php print $dataareaid; ?>" style="width: 100px"/>
    <input type ="hidden" name="recid" value="<?php print $recid; ?>" style="width: 100px"/>
</form>